home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Files
/
Directories
/
FileInfoLoop.cp
< prev
next >
Wrap
Text File
|
2000-06-23
|
509b
|
30 lines
// FileInfoLoop.cp
#ifndef FileInfoLoop_h
#include "FileInfoLoop.h"
#endif
void FileInfoLoop::AdvanceToNextMatch()
{
while ( Unfinished() && (*this)->IsDirectory() )
CatInfoLoop::operator++();
}
FileInfoLoop::FileInfoLoop( Directory folder )
: CatInfoLoop( folder )
{
AdvanceToNextMatch();
}
void FileInfoLoop::Start( Directory folder )
{
CatInfoLoop::Start( folder );
AdvanceToNextMatch();
}
void FileInfoLoop::operator++()
{
CatInfoLoop::operator++();
AdvanceToNextMatch();
}